<?php echo $header; ?>
<div id="bd" role="main">
    <div id="yui-main">
        <div class="yui-b">
            <div class="yui-g" >
                <div id="address" class="main-module">
                    <div class="hd"><h2>我的鼎宴 - 订单</h2></div>
                    <div class="bd">
                        <?php if ($orders) { ?>
                        <?php foreach ($orders as $order) { ?>
                            <table class="green-table">
                                <tr>
                                <td><?php echo $order['order_id']; ?></td>
                                <td><?php echo $order['status']; ?></td>
                                <td><?php echo $order['date_added']; ?></td>
                                <td><?php echo $order['products']; ?></td>
                                <td><?php echo $order['name']; ?></td>
                                <td><?php echo $order['total']; ?></td>
                                <td><?php echo $order['products']; ?></td>
                                <td><?php echo $order['total']; ?></td>
                                <td style="text-align: right;">
                                <a href_="<?php echo $order['href']; ?>" class="button"><span>查看</span></a>
                                </td>
                                </tr>
                            </table>
                        <?php } ?>
                        <?php } else { ?>
                        <div class="content">您还没有在鼎宴点过餐哦。</div>
                        <?php } ?>
                        <div class="form-btn clearfix">
                            <a href="./" class="button">返回主页点餐</a>
                        </div>
                    </div>
                    <div class="ft"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="yui-b">
        <?php echo $myside; ?>
    </div>
</div>
<?php echo $footer; ?>